import request from '@/plugins/axios'

// 商品列表
export const apiWorkbenchIndex = (data: any) => request.get('/workbench/index', data)

// 商品top50
export const apiWorkbenchTopGoods = (params: any) => request.get('/workbench/topGoods50', { params })

// 用户top50
export const apiWorkbenchTopUser = (params: any) => request.get('/workbench/topUser50', { params })

// 检测更新
export const apiCheckRefresh = (params?: any) => request.get('/config/checkLegal', { params })

//统计数据 supplier/stat
export const supplierStat = (params?: any) => request.get('/supplier/stat', { params })
//商品排行 supplier/topGoods
export const topGoods = (params?: any) => request.get('/supplier/topGoods', { params })
//商品访客排行
export const topUser = (params?: any) => request.get('/supplier/topUser', { params })
//商品分类 goods/categoryLists
export const categoryLists = (params?: any) => request.get('/goods/categoryLists', { params })
